package com.zl.controller;

import com.zl.service.impl.AsyncServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * @author zl
 * @date 2023/3/7
 * @apiNote
 */
@Controller
public class AsyncController {
    @Autowired
    private AsyncServiceImpl asyncService;
    @RequestMapping("/hello")
    @ResponseBody
    public String hello() {
        asyncService.hello();
        return "hello";
    }
}
